<?php
// +----------------------------------------------------------------------
// | Amicool-MVC [ Dynamic Flexible Agile Devlepment]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2020 http://amicool.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 郡笑笙 <iamzjs@126.com>
// +----------------------------------------------------------------------
class LoginModel extends Model
{   
    function __Construct(){
		parent::__Construct();
		$this->mod = 'admins';
	}
	function checkLogin($username,$pwd){
		 $condition = "where adminname='".$username."' and password=md5('".$pwd."')";
        $result = $this->_fetchAll($this->mod,$condition);
        if($result){
        	return $result;
        }
        else{
        	return false;
        }
		
	}
}
?>